package java_DesignPattern.SixPrinciple.DependencyInversionPrinciple.Default;

/**
 * 依赖倒置原则默认代码测试类
 */
public class Test {

     public static void main(String[] args) {
         //创建电脑对象
        Computer computer = new Computer();
        //设置电脑组件
        computer.setCpu(new IntelCPU());
        computer.setMemory(new KingstonMemory());
        computer.setHardDisk(new XJieHardDisk());

        //运行电脑
        computer.run();
    }
}
